home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 42 / Univers Mac Interactif - Issue 42.iso / >interactif / Démos Voyager / SNHOUSE.DIR / 00147_Script_MOVIE SCRIPT < prev    next >
Text File  |  1994-11-01  |  1KB  |  58 lines

  1. on startmovie
  2.   set the stagecolor to 0
  3.   --  speakToUs --raises voice volume
  4.   -- silenceMe
  5. end
  6.  
  7. on LoadBones
  8.   repeat with x= 1 to 36
  9.     preloadCast "B" & x
  10.   end repeat
  11. end
  12.  
  13. --on silenceMe
  14. --  set the sound of cast 138 to 0
  15. --  set the sound of cast 139 to 0
  16. --  set the sound of cast 140 to 0
  17. --  set the sound of cast 38 to 0
  18. --  set the sound of cast 44 to 0
  19. --  set the sound of cast 54 to 0
  20. --end
  21. --on speakToUs
  22. --  set the sound of cast 138 to 255
  23. --  set the sound of cast 139 to 255
  24. --  set the sound of cast 140 to 255
  25. --  set the sound of cast 38 to 255
  26. --  set the sound of cast 44 to 255
  27. --  set the sound of cast 54 to 255
  28. --end
  29.  
  30. on enterframe 
  31.   cursor 200
  32. end
  33.  
  34. on waitSound chan
  35.   cursor 200
  36.   if soundbusy(chan) = 1 then go the frame
  37. end
  38.  
  39. on waitQT chan
  40.   cursor 200
  41.   if the movieRate of sprite chan =1 then go the frame
  42. end 
  43.  
  44. on waiting theTicks
  45.   repeat while (theTicks>= the timer)
  46.     go the frame
  47.   end repeat
  48. end
  49.  
  50. on KeyDown
  51.   global autoplaying
  52.   put 0 into autoplaying
  53.   sound stop 1
  54.   sound stop 2
  55.   unloadcast
  56.   play done
  57. end
  58.